/****************************************************************************
** Meta object code from reading C++ file 'qwt_thermo.h'
**
** Created by: The Qt Meta Object Compiler version 68 (Qt 6.5.3)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../qwt_thermo.h"
#include <QtCore/qmetatype.h>

#if __has_include(<QtCore/qtmochelpers.h>)
#include <QtCore/qtmochelpers.h>
#else
QT_BEGIN_MOC_NAMESPACE
#endif


#include <memory>

#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qwt_thermo.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.5.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {

#ifdef QT_MOC_HAS_STRINGDATA
struct qt_meta_stringdata_CLASSQwtThermoENDCLASS_t {};
static constexpr auto qt_meta_stringdata_CLASSQwtThermoENDCLASS = QtMocHelpers::stringData(
    "QwtThermo",
    "setValue",
    "",
    "val",
    "alarmBrush",
    "alarmColor",
    "alarmEnabled",
    "alarmLevel",
    "scalePosition",
    "ScalePos",
    "borderWidth",
    "fillBrush",
    "fillColor",
    "maxValue",
    "minValue",
    "pipeWidth",
    "value",
    "NoScale",
    "LeftScale",
    "RightScale",
    "TopScale",
    "BottomScale"
);
#else  // !QT_MOC_HAS_STRING_DATA
struct qt_meta_stringdata_CLASSQwtThermoENDCLASS_t {
    uint offsetsAndSizes[44];
    char stringdata0[10];
    char stringdata1[9];
    char stringdata2[1];
    char stringdata3[4];
    char stringdata4[11];
    char stringdata5[11];
    char stringdata6[13];
    char stringdata7[11];
    char stringdata8[14];
    char stringdata9[9];
    char stringdata10[12];
    char stringdata11[10];
    char stringdata12[10];
    char stringdata13[9];
    char stringdata14[9];
    char stringdata15[10];
    char stringdata16[6];
    char stringdata17[8];
    char stringdata18[10];
    char stringdata19[11];
    char stringdata20[9];
    char stringdata21[12];
};
#define QT_MOC_LITERAL(ofs, len) \
    uint(sizeof(qt_meta_stringdata_CLASSQwtThermoENDCLASS_t::offsetsAndSizes) + ofs), len 
Q_CONSTINIT static const qt_meta_stringdata_CLASSQwtThermoENDCLASS_t qt_meta_stringdata_CLASSQwtThermoENDCLASS = {
    {
        QT_MOC_LITERAL(0, 9),  // "QwtThermo"
        QT_MOC_LITERAL(10, 8),  // "setValue"
        QT_MOC_LITERAL(19, 0),  // ""
        QT_MOC_LITERAL(20, 3),  // "val"
        QT_MOC_LITERAL(24, 10),  // "alarmBrush"
        QT_MOC_LITERAL(35, 10),  // "alarmColor"
        QT_MOC_LITERAL(46, 12),  // "alarmEnabled"
        QT_MOC_LITERAL(59, 10),  // "alarmLevel"
        QT_MOC_LITERAL(70, 13),  // "scalePosition"
        QT_MOC_LITERAL(84, 8),  // "ScalePos"
        QT_MOC_LITERAL(93, 11),  // "borderWidth"
        QT_MOC_LITERAL(105, 9),  // "fillBrush"
        QT_MOC_LITERAL(115, 9),  // "fillColor"
        QT_MOC_LITERAL(125, 8),  // "maxValue"
        QT_MOC_LITERAL(134, 8),  // "minValue"
        QT_MOC_LITERAL(143, 9),  // "pipeWidth"
        QT_MOC_LITERAL(153, 5),  // "value"
        QT_MOC_LITERAL(159, 7),  // "NoScale"
        QT_MOC_LITERAL(167, 9),  // "LeftScale"
        QT_MOC_LITERAL(177, 10),  // "RightScale"
        QT_MOC_LITERAL(188, 8),  // "TopScale"
        QT_MOC_LITERAL(197, 11)   // "BottomScale"
    },
    "QwtThermo",
    "setValue",
    "",
    "val",
    "alarmBrush",
    "alarmColor",
    "alarmEnabled",
    "alarmLevel",
    "scalePosition",
    "ScalePos",
    "borderWidth",
    "fillBrush",
    "fillColor",
    "maxValue",
    "minValue",
    "pipeWidth",
    "value",
    "NoScale",
    "LeftScale",
    "RightScale",
    "TopScale",
    "BottomScale"
};
#undef QT_MOC_LITERAL
#endif // !QT_MOC_HAS_STRING_DATA
} // unnamed namespace

Q_CONSTINIT static const uint qt_meta_data_CLASSQwtThermoENDCLASS[] = {

 // content:
      11,       // revision
       0,       // classname
       0,    0, // classinfo
       1,   14, // methods
      12,   23, // properties
       1,   83, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags, initial metatype offsets
       1,    1,   20,    2, 0x0a,   13 /* Public */,

 // slots: parameters
    QMetaType::Void, QMetaType::Double,    3,

 // properties: name, type, flags
       4, QMetaType::QBrush, 0x00015103, uint(-1), 0,
       5, QMetaType::QColor, 0x00015103, uint(-1), 0,
       6, QMetaType::Bool, 0x00015103, uint(-1), 0,
       7, QMetaType::Double, 0x00015103, uint(-1), 0,
       8, 0x80000000 | 9, 0x0001510b, uint(-1), 0,
      10, QMetaType::Int, 0x00015103, uint(-1), 0,
      11, QMetaType::QBrush, 0x00015103, uint(-1), 0,
      12, QMetaType::QColor, 0x00015103, uint(-1), 0,
      13, QMetaType::Double, 0x00015103, uint(-1), 0,
      14, QMetaType::Double, 0x00015103, uint(-1), 0,
      15, QMetaType::Int, 0x00015103, uint(-1), 0,
      16, QMetaType::Double, 0x00015103, uint(-1), 0,

 // enums: name, alias, flags, count, data
       9,    9, 0x0,    5,   88,

 // enum data: key, value
      17, uint(QwtThermo::NoScale),
      18, uint(QwtThermo::LeftScale),
      19, uint(QwtThermo::RightScale),
      20, uint(QwtThermo::TopScale),
      21, uint(QwtThermo::BottomScale),

       0        // eod
};

Q_CONSTINIT const QMetaObject QwtThermo::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_meta_stringdata_CLASSQwtThermoENDCLASS.offsetsAndSizes,
    qt_meta_data_CLASSQwtThermoENDCLASS,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSQwtThermoENDCLASS_t,
        // property 'alarmBrush'
        QtPrivate::TypeAndForceComplete<QBrush, std::true_type>,
        // property 'alarmColor'
        QtPrivate::TypeAndForceComplete<QColor, std::true_type>,
        // property 'alarmEnabled'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'alarmLevel'
        QtPrivate::TypeAndForceComplete<double, std::true_type>,
        // property 'scalePosition'
        QtPrivate::TypeAndForceComplete<ScalePos, std::true_type>,
        // property 'borderWidth'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'fillBrush'
        QtPrivate::TypeAndForceComplete<QBrush, std::true_type>,
        // property 'fillColor'
        QtPrivate::TypeAndForceComplete<QColor, std::true_type>,
        // property 'maxValue'
        QtPrivate::TypeAndForceComplete<double, std::true_type>,
        // property 'minValue'
        QtPrivate::TypeAndForceComplete<double, std::true_type>,
        // property 'pipeWidth'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'value'
        QtPrivate::TypeAndForceComplete<double, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<QwtThermo, std::true_type>,
        // method 'setValue'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<double, std::false_type>
    >,
    nullptr
} };

void QwtThermo::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QwtThermo *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->setValue((*reinterpret_cast< std::add_pointer_t<double>>(_a[1]))); break;
        default: ;
        }
    }else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QwtThermo *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QBrush*>(_v) = _t->alarmBrush(); break;
        case 1: *reinterpret_cast< QColor*>(_v) = _t->alarmColor(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->alarmEnabled(); break;
        case 3: *reinterpret_cast< double*>(_v) = _t->alarmLevel(); break;
        case 4: *reinterpret_cast< ScalePos*>(_v) = _t->scalePosition(); break;
        case 5: *reinterpret_cast< int*>(_v) = _t->borderWidth(); break;
        case 6: *reinterpret_cast< QBrush*>(_v) = _t->fillBrush(); break;
        case 7: *reinterpret_cast< QColor*>(_v) = _t->fillColor(); break;
        case 8: *reinterpret_cast< double*>(_v) = _t->maxValue(); break;
        case 9: *reinterpret_cast< double*>(_v) = _t->minValue(); break;
        case 10: *reinterpret_cast< int*>(_v) = _t->pipeWidth(); break;
        case 11: *reinterpret_cast< double*>(_v) = _t->value(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QwtThermo *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAlarmBrush(*reinterpret_cast< QBrush*>(_v)); break;
        case 1: _t->setAlarmColor(*reinterpret_cast< QColor*>(_v)); break;
        case 2: _t->setAlarmEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setAlarmLevel(*reinterpret_cast< double*>(_v)); break;
        case 4: _t->setScalePosition(*reinterpret_cast< ScalePos*>(_v)); break;
        case 5: _t->setBorderWidth(*reinterpret_cast< int*>(_v)); break;
        case 6: _t->setFillBrush(*reinterpret_cast< QBrush*>(_v)); break;
        case 7: _t->setFillColor(*reinterpret_cast< QColor*>(_v)); break;
        case 8: _t->setMaxValue(*reinterpret_cast< double*>(_v)); break;
        case 9: _t->setMinValue(*reinterpret_cast< double*>(_v)); break;
        case 10: _t->setPipeWidth(*reinterpret_cast< int*>(_v)); break;
        case 11: _t->setValue(*reinterpret_cast< double*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    } else if (_c == QMetaObject::BindableProperty) {
    }
}

const QMetaObject *QwtThermo::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *QwtThermo::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_CLASSQwtThermoENDCLASS.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QwtAbstractScale"))
        return static_cast< QwtAbstractScale*>(this);
    return QWidget::qt_metacast(_clname);
}

int QwtThermo::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 1;
    }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    return _id;
}
QT_WARNING_POP
